package com.wcsy.myblog.entity;

import java.util.List;

/**
 * @apiNote 文章分页实体类
 */
public class ArticlePage<T> {
    public static final int PAGE_SIZE = 10;//psfi每页的数据量
    private int pageCount;//页面的总数
    private int pageNO;//当前页数
    private List<T> data;//当前页面的数据

    public ArticlePage() {
    }

    public ArticlePage(int pageCount, int pageNO, List<T> data) {
        this.pageCount = pageCount;
        this.pageNO = pageNO;
        this.data = data;
    }

    public static int getPageSize() {
        return PAGE_SIZE;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public int getPageNO() {
        return pageNO;
    }

    public void setPageNO(int pageNO) {
        this.pageNO = pageNO;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
